<div class="underlying">
  <div class="table">
    <!-- 头部Table -->
    <nz-table #headerTable
      style="border-collapse: collapse; border-radius: 4px 4px 0px 0px;"
      [nzData]="listOfData" class="designTable" [nzShowPagination]='false'
      [nzScroll]="{ y: '700px' }">
      <thead class="tableHeard" style="text-align: center !important;">
        <tr style="text-align: center !important;">
          <th nzWidth="130px">品檢狀態</th>
          <th nzWidth="130px">送檢時間</th>
          <th nzWidth="200px">工聯單號</th>
          <th nzWidth="80px">箱號</th>
          <th nzWidth="230px">治具名稱</th>
          <th nzWidth="230px">零件名稱</th>
          <th nzWidth="150px">送檢工件數量</th>
          <th nzWidth="50px">NG</th>
          <th nzWidth="50px">OK</th>
          <th nzWidth="150px">治具交期</th>
        </tr>
      </thead>
      <!-- 工联单Table -->
      <tbody class="tablecontent" style="border-left: 1px solid rgba(71,156,156,1) !important;">
        <!--  -->
        <tr id="first" *ngFor="let item of listOfData let key = index">
          <!-- 状态 -->
          <td *ngIf = "item.status =='待品檢'" style="color: #D23B5F;">{{item.status}}</td>
          <td *ngIf = "item.status =='已檢-NG'" style="color: #FACA00;">{{item.status}}</td>
          <td *ngIf = "item.status !=='已檢-NG' && item.status !=='待品檢'" style="color: #ffffff;">{{item.status}}</td>
          <!-- 送檢時間 -->
          <td>{{item.check_date}}</td>
          <!-- 工聯單號 -->
          <td>{{item.unionorder}}</td>
          <!-- 箱號 -->
          <td>{{item.box}}</td>
          <!-- 治具名稱 -->
          <td style="cursor:pointer;max-width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;text-align: left;" title={{item.name}}>{{item.name}}</td>
          <!-- 零件名稱 -->
          <td>{{item.image_no}}</td>
          <!-- 送檢工件數量 -->
          <td>{{item.quatity_total}}</td>
          <!-- NG -->
          <td>{{item.ng_count}}</td>
          <!-- OK -->
          <td>{{item.ok_count}}</td>
          <!-- 治具交期 -->
          <td>{{item.delivery_date}}</td>
        </tr>
      </tbody>
    </nz-table>
  </div>
</div>



